package com.jxgc.excel.demo;

import org.apache.poi.ss.usermodel.*;
import org.apache.poi.ss.util.CellRangeAddress;
import org.apache.poi.xssf.streaming.SXSSFRow;
import org.apache.poi.xssf.streaming.SXSSFSheet;
import org.apache.poi.xssf.streaming.SXSSFWorkbook;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


public class text {
    public static void main(String[] args) {
        String originalFilepath = "D:\\text\\excel(1).xlsx";
        String newFilePath = "D:\\text\\output.xlsx";

    }

    private static void exportExcel(List<Map<String, String>> data) {
        try {
            FileInputStream fis = new FileInputStream(orig);
            Workbook originalWorkbook = new SXSSFWorkbook(fis);
            FileOutputStream fos = new FileOutputStream((newFilePath))


            SXSSFWorkbook sxssfWorkbook = new SXSSFWorkbook();
            SXSSFSheet sheet = sxssfWorkbook.createSheet("crm");


        }
    }
}